<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>11、属性指令-v-bind.html</title>
</head>
<body>

    <div id="app">
        <h1 title="">{{title}}</h1>
        <div class="container" id="box1" v-bind:title="title" onclick="alert('1')" v-bind:username="username">我是文本域</div>
        <div class="container" id="box2" :title="title" onclick="alert('1')" :username="username">我是文本域</div>
    </div>

    <script src="js/vue.global.js"></script>
    <script>
        var vue = Vue.createApp({
            data(){
               return {
                   title:"我是一个div",
                   username:"我是飞哥"
               }
            },
            methods:{

            }
        }).mount("#app");

    </script>


</body>
</html>